use crate::{Elf64Addr, Elf64Sxword};

trans! {ReloType:u32}

#[repr(C)]
pub struct ReloInfo {
    relo_type: ReloType,
    sym_index: u32,
}
#[repr(C)]
pub struct Rel {
    pub offset: Elf64Addr,
    pub info: ReloInfo,
}
#[repr(C)]
pub struct Rela {
    pub offset: Elf64Addr,
    pub info: ReloInfo,
    pub addend: Elf64Sxword,
}

impl_borrow!(ReloType, Rel, Rela);
